package com.fyh.test;

/**
 * 
 * @author 付元辉
 *
 * @since 2016年4月9日
 */
public class Product {

	private Integer productId;
	private String productName;
	private String productDesc;
	private Double productPrice;

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductDesc() {
		return productDesc;
	}

	public void setProductDesc(String productDesc) {
		this.productDesc = productDesc;
	}

	public Double getProductPrice() {
		return productPrice;
	}

	public void setProductPrice(Double productPrice) {
		this.productPrice = productPrice;
	}

	@Override
	public String toString() {
		return "Product [productId=" + productId + ", productName="
				+ productName + ", productDesc=" + productDesc
				+ ", productPrice=" + productPrice + "]";
	}

	/**
	 * 反射
	 */
	public String save() {
		System.out.println("save的结果是:" + this);
		return "detail";
	}

}
